Cours C++
Exemples pedagogiques de programmation C++
Chargement...
Recherche...
Aucune correspondance
Carre.h
Aller à la documentation de ce fichier.
1
//
2
// Carre.h
3
// Aire v1.0
4
//
5
// Created by Michel Semon on 15.08.2026.
6
//
7
8
#ifndef CARRE_H
9
#define CARRE_H
10
11
#include "
Forme.h
"
12
13
class
Carre
:
public
Forme
14
{
15
private
:
16
17
double
cote
;
18
19
public
:
20
21
Carre
(
double
coteInitial);
22
~Carre
();
23
24
double
aire
()
const override
;
25
};
26
#endif
Forme.h
Carre::~Carre
~Carre()
Definition
Carre.cpp:17
Carre::Carre
Carre(double coteInitial)
Definition
Carre.cpp:10
Carre::cote
double cote
Definition
Carre.h:17
Carre::aire
double aire() const override
Definition
Carre.cpp:23
Forme::Forme
Forme()
Definition
Forme.cpp:11
Carre.h
Généré par
1.16.1